<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditTestwellsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditTestwellsLabel_idtestwells}" for="idtestwells" />
                    <h:inputText id="idtestwells" value="#{testwellsController.selected.idtestwells}" title="#{bundle.EditTestwellsTitle_idtestwells}" required="true" requiredMessage="#{bundle.EditTestwellsRequiredMessage_idtestwells}"/>
                    <h:outputLabel value="#{bundle.EditTestwellsLabel_flexibilidadwells}" for="flexibilidadwells" />
                    <h:inputText id="flexibilidadwells" value="#{testwellsController.selected.flexibilidadwells}" title="#{bundle.EditTestwellsTitle_flexibilidadwells}" required="true" requiredMessage="#{bundle.EditTestwellsRequiredMessage_flexibilidadwells}"/>
                    <h:outputLabel value="#{bundle.EditTestwellsLabel_fechawells}" for="fechawells" />
                    <h:inputText id="fechawells" value="#{testwellsController.selected.fechawells}" title="#{bundle.EditTestwellsTitle_fechawells}" required="true" requiredMessage="#{bundle.EditTestwellsRequiredMessage_fechawells}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditTestwellsLabel_calificacionwells}" for="calificacionwells" />
                    <h:inputText id="calificacionwells" value="#{testwellsController.selected.calificacionwells}" title="#{bundle.EditTestwellsTitle_calificacionwells}" required="true" requiredMessage="#{bundle.EditTestwellsRequiredMessage_calificacionwells}"/>
                    <h:outputLabel value="#{bundle.EditTestwellsLabel_idusuario}" for="idusuario" />
                    <h:selectOneMenu id="idusuario" value="#{testwellsController.selected.idusuario}" title="#{bundle.EditTestwellsTitle_idusuario}" >
                        <f:selectItems value="#{usuarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{testwellsController.update}" value="#{bundle.EditTestwellsSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditTestwellsViewLink}"/>
                <br />
                <h:commandLink action="#{testwellsController.prepareList}" value="#{bundle.EditTestwellsShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditTestwellsIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
